// 该文件专门用于创建整个应用的路由器
import VueRouter from 'vue-router'
//引入组件
import Login from '../views/Login/Login.vue'
import DropDown from '../views/DropDown/DropDown.vue'
import DataBoard from '../views/DataBoard/DataBoard.vue'
import TaskPlan from '../views/TaskPlan/TaskPlan.vue'
import User from '../views/User/User.vue'
import StationManagemen from '../views/ManufacturingExecution/StationManagemen/StationManagemen.vue' //工位
import DepartmentManagement from '../views/User/DepartmentManagement/DepartmentManagement.vue' //部门
import AccountManagement from '../views/User/AccountManagement/AccountManagement.vue' //账户
import ManufacturingExecution from '../views/ManufacturingExecution/ManufacturingExecution.vue'
import carTechnology from '../views/ManufacturingExecution/carTechnology/carTechnology.vue'

//创建并暴露一个路由器
const router = new VueRouter({
  routes: [
    // 登录
    {
      path: '/login',
      name: 'login',
      component: Login
    },

    // 数据看板
    {
      path: '/dataBoard',
      name: 'dataBoard',
      component: DataBoard
    },
    // 制造执行
    {
      path: '/ManufacturingExecution',
      name: 'ManufacturingExecution',
      component: ManufacturingExecution
    },
    // 下级菜单
    {
      path: '/dropDown',
      name: 'dropDown',
      component: DropDown
    },

    // 任务计划
    {
      path: '/TaskPlan',
      name: 'taskPlan',
      component: TaskPlan
    },
    // 用户管理
    {
      path: '/User',
      name: 'user',
      component: User
    },

    //   汽车工艺
    {
      path: '/carTechnology',
      name: 'carTechnology',
      component: carTechnology
    },

    //客户端
    {
      path: '/Client',
      name: 'Client',
      component: () => import('@/views/client/Client.vue')
    },
    //工位管理
    {
      path: '/StationManagemen',
      name: 'StationManagemen',
      component: StationManagemen
    },
    //部门管理
    {
      path: '/DepartmentManagement',
      name: 'DepartmentManagement',
      component: DepartmentManagement
    },
    //账户管理
    {
      path: '/AccountManagement',
      name: 'AccountManagement',
      component: AccountManagement
    }
  ]
})

export default router
